package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_brand;
import cn.com.api.mapper.ApiT_brandMapper;

/**
 * 
 **/
@Service
public class T_brandServiceImplBase {
	@Autowired
	private ApiT_brandMapper apiT_brandMapper;

	// 根据id获取
	public ApiT_brand findT_brandById(Integer id) {
		ApiT_brand t_brand = apiT_brandMapper.findT_brandById(id);
		return t_brand;
	}

	// 查看数据集
	public List<ApiT_brand> findT_brands() {
		List<ApiT_brand> t_brands = apiT_brandMapper.findT_brands();
		return t_brands;
	}

	// 添加
	public int insertT_brand(ApiT_brand t_brand) {
		int ret_I = apiT_brandMapper.insertT_brand(t_brand);
		return ret_I;
	}

	// 修改
	public int updateT_brand(ApiT_brand t_brand) {
		int ret_I = apiT_brandMapper.updateT_brand(t_brand);
		return ret_I;
	}

	// 删除
	public int deleteT_brand(Integer id) {
		int ret_I = apiT_brandMapper.deleteT_brand(id);
		return ret_I;
	}

}
